import Index from '../pages/IndexPage.vue'
import Team from '../pages/TeamPage.vue'
import User from '../pages/UserPage.vue'
import Search from '../pages/SearchPage.vue'
import SearchResultPage from '../pages/SearchResultPage.vue'
import UserEditPage from '../pages/UserEditPage.vue'
import UserLoginPage from '../pages/UserLoginPage.vue'
import TeamAddPage from '../pages/TeamAddPage.vue'
import MyTeamPage from '../pages/MyTeamPage.vue'
import TeamUpdatePage from '../pages/TeamUpdatePage.vue'

export const routes = [
    {
        path: '/',
        name: 'index',
        component: Index
    },
    {
        path: '/team',
        name: 'team',
        component: Team
    },
    {
        path: '/my/team',
        name: 'my-team',
        component: MyTeamPage
    },
    {
        path: '/team/add',
        name: 'team-add',
        component: TeamAddPage
    },
    {
        path: '/team/update/:id',
        name: 'team-update',
        component: TeamUpdatePage
    },
    {
        path: '/user',
        name: 'user',
        component: User
    },
    {
        path: '/user/list',
        name: 'user-list',
        component: SearchResultPage
    },
    {
        path: '/search',
        name: 'search',
        component: Search
    },
    {
        path: '/user/edit',
        name: 'user-edit',
        component: UserEditPage
    },
    {
        path: '/user/login',
        name: 'user-login',
        component: UserLoginPage
    }
]
